//
//  CTDiscoveryView.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/5/23.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CTDiscoveryItems.h"
@class CTComment,CTFollowList,CTListDetailUser,CTUserSuggestionItem,CTTopic;


@protocol CTDiscoveryViewDelegate;

@interface CTDiscoveryView : UIView

@property(nonatomic,assign)id<CTDiscoveryViewDelegate>delegate;

@property(nonatomic,setter=setFollowListArr:)NSArray * followListArray;
@property(nonatomic,setter=setSugesstionUserListArr:)NSArray * suggestionUserListArray;


-(void)refresh;
-(void)refreshPullDownEnd;
-(void)refreshPullUpEnd;

-(void)reloadData;

@end


@protocol CTDiscoveryViewDelegate <NSObject>



-(void)followDetailClicked:(CTDiscoveryView *)view
                  withItem:(id)itm;

-(void)refreshPullDown:(CTDiscoveryView *)view;
-(void)refreshPullUp:(CTDiscoveryView *)view;

/**
 *@brief 点击评论总数
 */
- (void)commentCountAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条
 */
- (void)commentHitFirstLabelAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第二条
 */
- (void)commentHitSecondLabelAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击评论第一条头像
 */
- (void)commentHitFirstHeadAction:(CTDiscoveryView *)view withItem:(CTComment *) item;
/**
 *@brief 点击评论第二条头像
 */
- (void)commentHitSecondHeadAction:(CTDiscoveryView *)view withItem:(CTComment *)item;
/**
 *@brief 点击头像
 */
- (void)hitHeadAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击大图
 */
- (void)hitPicImageBtnAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item withImageView:(UIImageView *)imageView;
/**
 *@brief 点赞
 */
- (void)hitFavourBtnAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item withBool:(BOOL) favBool;
/**
 *@brief 点击评论按钮
 */
- (void)hitCommentBtnaction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击分享按钮
 */
- (void)hitShareBtnAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item withImage:(UIImage *)img;
/**
 *@brief 点击更多按钮
 */
- (void)hitMoreBtnAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item;
/**
 *@brief 点击点赞的人的头像
 */
- (void)hitFavBtnHeadAction:(CTDiscoveryView *)view withItem:(CTListDetailUser *)item;
/**
 *@brief 点击关注按钮
 */
- (void)hitAttentionBtnAction:(CTDiscoveryView *)view withItem:(CTFollowList *)item withBool:(BOOL)attenBool;
/**
 *@brief 点击话题
 */
- (void)hitTopicBtnAction:(CTDiscoveryView *)view withItem:(CTTopic *)item;





//推荐cell回调

/**
 *@brief 点击关注按钮
 */
- (void)recommendHitAttentionBtnAction:(CTDiscoveryView *) view withItem:(CTUserSuggestionItem *)item;
/**
 *@brief 点击头像
 */
- (void)recommendHitHeadAction:(CTDiscoveryView *)view withItem:(CTUserSuggestionItem *)item;


@end